﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WBGDal;
using WBGModel;

namespace WBGBusiness
{
    public class BusExame
    {
        public List<ModelExame> Listar()
        {
            return Listar("");
        }

        public List<ModelExame> Listar(string filtro)
        {
            return new DalExame().Listar(filtro);
        }

        public void Inserir(ModelExame exame)
        {
            Validar(exame);
            new DalExame().Inserir(exame);
        }

        public void Alterar(ModelExame exame)
        {
            Validar(exame);
            new DalExame().Alterar(exame);
        }

        public void Deletar(int idExame)
        {
            new DalExame().Deletar(idExame);
        }

        private void Validar(ModelExame exame)
        {

        }
    }
}
